﻿using ERP.ERPSystem.ProductionSystem.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-排班管理-排班计划
    /// </summary>
    public interface IShiftplanningService : IApplicationService
    {
        /// <summary>
        /// 获取排班计划分页列表
        /// </summary>
        /// <param name="query">查询参数</param>
        /// <returns></returns>
        Task<ShiftplanningPageResultDTO> GetShiftplanningPageList(ShiftplanningQueryDTO query);

        /// <summary>
        /// 添加排班计划
        /// </summary>
        /// <param name="shiftplanningDto">排班计划数据</param>
        /// <returns></returns>
        Task<bool> AddShiftplanning(ShiftplanningDTO shiftplanningDto);

        /// <summary>
        /// 获取排班计划详情
        /// </summary>
        /// <param name="id">排班计划ID</param>
        /// <returns></returns>
        Task<ShiftplanningDTO> GetShiftplanningById(int id);

        /// <summary>
        /// 更新排班计划
        /// </summary>
        /// <param name="shiftplanningDto">排班计划数据</param>
        /// <returns></returns>
        Task<bool> UpdateShiftplanning(ShiftplanningDTO shiftplanningDto);
    }
}
